home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
comm
/
irc
/
KuangEleven3Gm.lha
/
Kuang Eleven 3
/
Rexx
/
Connected.amirx
< prev
next >
Wrap
Text File
|
1998-05-23
|
3KB
|
93 lines
/* $VER: Connected.amirx 3.4 (21.5.98) Kuang Eleven 3 Init for AmIRC 2+
*/
scrpath='T:' /* Path of events handlers*/
/* Do not mess with anything below */
options results
'SAY /RX _Connected.AMIRX'
x=getclip('st_init')
if x==1|x=2 then do
cecho(version() 'active')
exit
end
call setclip('st_init',2)
cecho('Initializing')
if ~show('L','rexxsupport.library') then if ~addlib('rexxsupport.library',0,-30,0) then do
cecho('Fatal Error: Cannot load rexxsupport.library')
exit
end
if ~show('L','rexxdossupport.library') then if ~addlib('rexxdossupport.library',0,-30,2) then do
cecho('Fatal Error: Cannot load rexxdossupport.library')
exit
end
if ~show('L','rexxkuang11.library') then if ~addlib("rexxkuang11.library",0,-30,0) then do
cecho('Fatal Error: Cannot load rexxkuang11.library')
exit
end
call KuangLibInit()
"GETPROGDIR"
progdir=result
if addpart(absolutepath(pragma('D')),'')~=addpart(absolutepath(progdir),'') then do
cecho('Initialization error!.If you are running AmIRC from a shell script,make sure to CD into the AmIRC directory first!')
exit
end
putscript('kuang11.amirx')
conf='Kuang11/Config'
if open(1,conf,'R') then do
buffer=readch(1,word(statef(conf),2))
cr='0a'x
do until buffer=''
parse var buffer c a (cr) buffer
if a~='' then call setclip('sc_'||lower(strip(c)),strip(a))
end
close(1)
ou='SAY /HILITE'
x=getclip('sc_comprefix')
if x~='' then ou '"'||x||'"'
l=getclip('sc_swords')
if getclip('sc_shit')='ON'&l~='' then do i=1 to words(l);;ou '"'upper(word(l,i))'"';end
"ISCONNECTED"
if rc=0 then do
if getclip('sc_asound')='ON' then do
"GETMYNICK"
x=result
ou '"!'||x||'"'
call setclip('st_asoundnick',x)
end
if getclip('sc_tia')='ON' then do
"GETMYNICK"
"USERHOST" result
host=result
open(1,'env:TIADCC','W')
rv=writeln(1,substr(host,pos('@',host)+1) 9050 9051 9052 9053)
close(1)
end
end
putlst=getclip('sc_copyscripts')
if putlst~='' then do until putlst=''
parse var putlst scr putlst
putscript(scr)
end
end
else cecho('Warning : Cannot load Configuration' conf)
call setclip('st_version',version())
call setclip('st_init',1)
cecho(version() 'Initialized')
'SAY /RX awayback SHOWLOG'
exit
putscript:
evn=scrpath||arg(1)
if exists(evn) then address command 'delete' evn 'force quiet'
address command 'copy rexx/'arg(1) evn 'quiet'
address command 'protect' evn '-d'
if ~exists(evn) then do
cecho('Failed! Missing' evn)
call setclip('st_init')
exit
end
return 0
version:;return x2c(2)'Kuang Eleven'x2c(2) 'v3.0 Gamma (17)'
cecho:;"ECHO P="d2c(27)"b«KInit»" arg(1)'.';return 0